<?php
//邮件
class sendMail extends PHPMailer{
	private $mail_to;
	private $title_to;
	private $content_to;
	private $name_to;
	private $mail_from;
	private $mail_from_name;

	public function __construct($set){
		if(is_array($set)){
			$this->SMTPAuth = $set['SMTPAuth'] ? $set['SMTPAuth'] : true;         					// turn on SMTP authentication 
			$this->IsHTML($set['IsHTML'] ? $set['IsHTML'] : true);  								// 是不支持html
			$this->AltBody 	= $set['AltBody'] ? $set['AltBody'] : "text/html";
			$this->Host 	= $set['Host'] ? $set['Host'] : "mail.m6699.com"; 						// SMTP servers
			$this->Username = $set['Username'] ? $set['Username'] : "int@m6699.com";   				// SMTP username  注意：普通邮件认证不需要加 @域名
			$this->Password = $set['Password'] ? $set['Password'] : "int";        					// SMTP password
			$this->CharSet 	= $set['CharSet'] ? $set['CharSet'] : "utf-8";            				// 这里指定字符集！
			$this->Encoding = $set['Encoding'] ? $set['Encoding'] : "base64";	
			$set['send_type'] ? $this->IsSendmail() : $this->IsSMTP();
		}
	}

	public function __destruct(){
		
	}
	
	public function send($mail_to, $title_to, $content_to,$name_to,$mail_from,$mail_from_name){
		
	}
}





?>